// execute by 
// > groovy -l 8000 httpserver.groovy

if (init)
  data = "";

if (line.size() > 0) {
  data += line + "\n"
} else {
  println "HTTP/1.0 200 OK\n"
  println "Your input is " + data
  return "success"
}
